<template>
	<div class="child">
		<h2>我是Child组件</h2>
		<h4>Child组件的msg：{{msg}}</h4>
		<h4>Child组件的address：{{address}}</h4>
		<!-- <button @click="chufa">触发</button> -->
	</div>
</template>

<script>
	export default {
		name:'Child',
		data() {
			return {
				msg:'欢迎来到尚硅谷！',
				address:'宏福科技园'
			}
		},
		// methods: {
		// 	chufa(){
		// 		this.$emit('click')
		// 	}
		// },
	}
</script>

<style scoped>
	.child{
		background-color: skyblue;
		padding: 30px;
	}
</style>